package partlow.googleplaces;

import jessmchung.groupon.enums.GrouponErrorCode;

/**
 *
 * @author Devin
 */
public class GooglePlacesException extends Exception {

	private static final long serialVersionUID = 983908780171564134L;

	/**
     * Creates a new instance of <code>GrouponException</code> without detail message.
     */
    public GooglePlacesException() {
    }


    /**
     * Constructs an instance of <code>GrouponException</code> with the specified detail message.
     * @param msg the detail message.
     */
    public GooglePlacesException(String msg) {
        super(msg);
    }
    
    public GooglePlacesException(GrouponErrorCode errorCode){
        super("Google Places Error " + errorCode.code() + " " + errorCode.description());
    }
    
}
